<?php $this->_extends('../_layouts/default_layout'); ?>
<?php $this->_block('contents'); ?>
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url');?>js/validator.js"></script>
<form action="<?=url('Online::EbayListing/RefreshStoreCategoriesSave');?>" method="post" onSubmit="return Validator.Validate(this,3)">
	<table class="form_table">
		<tr>
			<th>选择店铺</th>
			<td>
				<select name="shop" dataType="Require" msg="请选择店铺">
					<option value="">请选择..</option>
					<? foreach ($shop as $s): ?>
					<option value="<?=$s['id'] ?>"><?=$s['name']?></option>
					<? endforeach;?>
				</select>
			</td>
		</tr>
		<tr>
			<th>选择站点</th>
			<td>
				<select name="site" dataType="Require" msg="请选择站点">
					<option value="">请选择..</option>
					<?foreach (Q::ini('custom_flag/online_ebay_listing_site') as $oels):?>
					<option value="<?=$oels['value']?>" <?if (isset($_GET['site']) && in_array($oels['value'], $_GET['site'])):?>selected="selected"<?endif;?>><?=$oels['name']?> - <?=$oels['value']?></option>
					<?endforeach;?>
				</select>
			</td>
		</tr>
		<tr>
			<th><input type="hidden" name="<?=Q::ini('unique_token_name')?>" value="<?=Helper_BSS_Normal::genToken()?>" /></th>
			<td><input type="submit" class="button" value="刷新店铺分类" /></td>
		</tr>
	</table>
</form>
<?php $this->_endblock();?>